<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			div{
				width: 100px;
				height: 100px;
				background-color: red;
				transition: 1s;
				margin-bottom: 20px;
			}
			/*translate() 方法*/
			.p1:hover{
				transform: translate(50px,100px);
				transition: 1s;
			}
			/*rotate() 方法*/
			.p2:hover{
				transform: rotate(30deg);
				transition: 1s;
			}
			/*scale() 方法*/
			.p3:hover{
				transform: scale(2,3);
				transition: 1s;
			}
			/*skew() 方法*/
			.p4:hover{
				transform: skew(20deg,30deg);
				transition: 1s;
			}
			/*matrix() 方法*/
			.p5:hover{
				transform: matrix(0.866,3,-2.5,1,0,0);
				transition: 1s;
			}
		</style>
	</head>
	<body>
		<!--translate() 方法-->
		<div class="p1"></div>
		<!--rotate() 方法-->
		<div class="p2"></div>
		<!--scale() 方法-->
		<div class="p3"></div>
		<!--skew() 方法-->
		<div class="p4"></div>
		<!--matrix() 方法-->
		<div class="p5"></div>
	</body>
</html>